package com.lwj.vo.configuration;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class UserInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    private String empId;
    private String name;
    private String departmentId;
    private String departmentRoleId;
    private List<String> permissionCode=new ArrayList<>();
    private List<RoleInfo> roles=new ArrayList<>();

    public List<RoleInfo> getRoles() {
        return roles;
    }

    public void setRoles(List<RoleInfo> roles) {
        this.roles = roles;
    }

    public List<String> getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(List<String> permissionCode) {
        this.permissionCode = permissionCode;
    }

    public UserInfo(String empId, String name, String departmentId, String departmentRoleId, List<String> codes, List<RoleInfo> roleInfos) {
        this.empId = empId;
        this.name = name;
        this.departmentId = departmentId;
        this.departmentRoleId = departmentRoleId;
        this.permissionCode=codes;
        this.roles=roleInfos;
    }

    public UserInfo(String empId, String name, String departmentId, String departmentRoleId,List<String> permissionCode) {
        this.empId = empId;
        this.name = name;
        this.departmentId = departmentId;
        this.departmentRoleId = departmentRoleId;
        this.permissionCode=permissionCode;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getDepartmentRoleId() {
        return departmentRoleId;
    }

    public void setDepartmentRoleId(String departmentRoleId) {
        this.departmentRoleId = departmentRoleId;
    }

    public String getEmpId() {
        return empId;
    }

    public void setEmpId(String empId) {
        this.empId = empId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


}
